def train_pipeline(config):
    """模块化训练流程"""
    data = load_data(config['data_path'])
    features = extract_features(data)
    model = initialize_model(config['model_type'])
    trained_model = cross_validation(model, features)
    save_model(trained_model, config['output_path']) 